package com.acminds.fotoporter.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the FEATURE database table.
 * 
 */
@Entity
@Table(name="FEATURE")
public class Feature extends com.acminds.fotoporter.persistence.BaseDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="FEATURE_ID")
	private int featureId;

	@Column(name="CREATE_DATE")
	private Timestamp createDate;

	@Column(name="FEATURE_DESC")
	private String featureDesc;

	@Column(name="FEATURE_NAME")
	private String featureName;

	//bi-directional many-to-one association to FeatureGroup
    @ManyToOne
	@JoinColumn(name="FEATURE_GROUP_ID")
	private FeatureGroup featureGroup;

	//bi-directional many-to-one association to UserInfo
    @ManyToOne
	@JoinColumn(name="CREATED_BY")
	private UserInfo userInfo;

	//bi-directional many-to-one association to ItemFeature
	@OneToMany(mappedBy="feature")
	private List<ItemFeature> itemFeatures;

    public Feature() {
    }

	public int getFeatureId() {
		return this.featureId;
	}

	public void setFeatureId(int featureId) {
		this.featureId = featureId;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public String getFeatureDesc() {
		return this.featureDesc;
	}

	public void setFeatureDesc(String featureDesc) {
		this.featureDesc = featureDesc;
	}

	public String getFeatureName() {
		return this.featureName;
	}

	public void setFeatureName(String featureName) {
		this.featureName = featureName;
	}

	public FeatureGroup getFeatureGroup() {
		return this.featureGroup;
	}

	public void setFeatureGroup(FeatureGroup featureGroup) {
		this.featureGroup = featureGroup;
	}
	
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	
	public List<ItemFeature> getItemFeatures() {
		return this.itemFeatures;
	}

	public void setItemFeatures(List<ItemFeature> itemFeatures) {
		this.itemFeatures = itemFeatures;
	}
	
}